#include "Log.h"

uint32_t log_currlevel = TRACE;

uint8_t log_getlevel( char *nivel ){
	int i;
	
	for( i = 0; i < MAX_LOG_LEVEL; i++ ){
		if( strcasecmp( log_strlevel[ i ], nivel ) == 0 )
			break;
	}
	
	return i;
}

uint8_t log_setlevel( uint8_t level ){
	return log_currlevel = level;
}

